#!/usr/bin/env python3
# -*- coding: utf-8 -*-
I = float(input("输入当月利润I，单位为万元："))
bonus = 0
li = [100,60,40,20,10,0]
bi = [0.01,0.015,0.03,0.05,0.075,0.1]
#金额分档，对应提成分档
for i in range(6):
    if I > li[i]:
        I1 = I - li[i]
        bonus = bonus + I1 * bi[i]#奖金累加
        #I = I - I1
        I = li[i]

print("奖金为%s万元" %bonus)
